package com.fly.modules.sys.entity;

import com.fly.common.persistence.DataEntity;
import com.fly.common.persistence.TreeEntity;

/**
 * Created by SWan on 2017/4/26.
 */
public class Area extends TreeEntity<Area> {

    private String code; 	// 区域编码
    private String type; 	// 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）

    public Area getParent() {
        return parent;
    }

    public void setParent(Area parent) {
        this.parent = parent;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Area{" +
                "code='" + code + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
